package com.alcatel.oms.syslogms.web;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.extremecomponents.table.limit.Limit;
import com.alcatel.oms.core.extremetable.PageUtils;
import com.alcatel.oms.core.page.Page;
import com.alcatel.oms.core.utils.ParameterBean;
import com.alcatel.oms.core.web.StrutsEntityAction;
import com.alcatel.oms.syslogms.entity.MegerTable2;
import com.alcatel.oms.syslogms.manager.MegerTable2Manager;
public class MegerTable2Action extends StrutsEntityAction<MegerTable2, MegerTable2Manager> {
private MegerTable2Manager megerTable2Manager;
public void setMegerTable2Manager(MegerTable2Manager megerTable2Manager) {
this.megerTable2Manager = megerTable2Manager;
}
public ActionForward list(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) {
MegerTable2Form megerTable2Form = (MegerTable2Form) form;
List<ParameterBean> parameterList=new ArrayList<ParameterBean>();
parameterList.add(new ParameterBean("createtime",ParameterBean.Desc));
Limit limit = PageUtils.createTableLimit(request);
Page page = megerTable2Manager.getPageList(parameterList, limit.getPage(),limit.getCurrentRowsDisplayed());
PageUtils.setRequestAttributesForExTable(request, getEntityListName(), limit, page);
return mapping.findForward(LIST);
}
protected void onEditEntity(ActionForm form, HttpServletRequest request,MegerTable2 object) {
}
protected void onSaveEntity(ActionForm form, HttpServletRequest request,MegerTable2 object) {
}

protected void onDeleteEntity(ActionForm form, HttpServletRequest request) {

}


}

